//
//  TFY_EmiiterLayerChainModel.m
//  TFY_LayoutCategoryUtil
//
//  Created by tiandengyou on 2020/3/30.
//  Copyright © 2020 田风有. All rights reserved.
//

#import "TFY_EmiiterLayerChainModel.h"
#define TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(TFY_Method,TFY_ParaType) TFY_CATEGORY_CHAIN_LAYERCLASS_IMPLEMENTATION(TFY_Method,TFY_ParaType, TFY_EmiiterLayerChainModel *, CAEmitterLayer)
@implementation TFY_EmiiterLayerChainModel

TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(emitterCells, NSArray<CAEmitterCell *> *)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(birthRate, float)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(lifetime, float)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(emitterPosition, CGPoint)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(emitterZPosition, CGFloat)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(emitterSize, CGSize)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(emitterDepth, CGFloat)

#ifdef __IPHONE_12_0
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(emitterShape, CAEmitterLayerEmitterShape)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(emitterMode, CAEmitterLayerEmitterMode)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(renderMode, CAEmitterLayerRenderMode)
#endif
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(preservesDepth, BOOL)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(velocity, float)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(scale, float)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(spin, float)
TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION(seed, unsigned int)
@end
TFY_CATEGORY_LAYER_IMPLEMENTATION(CAEmitterLayer, TFY_EmiiterLayerChainModel)
#undef TFY_CATEGORY_CHAIN_EMITTERLAYER_IMPLEMENTATION

